# Maintainer: Hoang Nguyen <folliekazetani@protonmail.com>
pkgname=virt-lightning
pkgver=2.1.0
pkgrel=0
pkgdesc="A tool to start libvirt VMs in a couple of seconds"
url="https://github.com/virt-lightning/virt-lightning"
arch="all !s390x !riscv64" # blocked by py3-libvirt
license="Apache-2.0"
depends="python3 py3-libvirt py3-yaml"
makedepends="py3-setuptools_scm"
source="$pkgname-$pkgver.tar.gz::https://github.com/virt-lightning/virt-lightning/archive/refs/tags/$pkgver.tar.gz"
options="!check" # tests require a running libvirtd service

build() {
	export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
d1ae1c922faab7cfb0771b45e0d32fd341003137536729f8ea8a4869fb24ade8ecc971df1acb6045bb56e039a4b8f7634d2a6ff7db28f81a77c08bd197a61d19  virt-lightning-2.1.0.tar.gz
"
